/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-6-17 下午3:15 Created by lyyang
 */
package com.xunton.bss.weixin.api.bonus.request;

import java.io.Serializable;
import java.util.HashMap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import com.xunton.bss.weixin.api.Utils;

/**
 * 请求基础类
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-6-17 下午3:15
 */
@XmlAccessorType (XmlAccessType.FIELD)
public class Request implements Serializable
{
    protected HashMap params = new HashMap();

    @XmlElement (name = "sign")
    private String sign;

    public String getSign()
    {
        return sign;
    }



    public void calculateSign(String apiKey) throws Exception{
        sign = Utils.md5Signature(params,apiKey);
    }
}
